package com.ljx.thread.thread06;

/**
 * @author LJX
 * @Description: TODO
 * @Date: 2022/11/1 19:48
 * @Version 1.0
 */
public class Girl implements Runnable{
	private BankCard bankCard;

	public Girl(BankCard bankCard) {
		this.bankCard = bankCard;
	}

	@Override
	public void run() {

			for (int i = 0; i < 2; i++) {
				bankCard.take(1000);
			}

		}
	}

